<?php

use think\facade\Route;
use app\middleware\Shop;

//商城测试
$shop = "\app\shop\controller\\";
Route::group('', function () use ($shop) {
    //登陆
    Route::get('/login', $shop . 'Login@login');
    Route::post('/userLogin', $shop . 'Login@userLogin');
    Route::post('/userRegister', $shop . 'Login@userRegister');
    //首页
    Route::get('/', $shop . 'Index@index');
    Route::get('/list', $shop . 'Index@list');
    Route::get('/details', $shop . 'Index@details');
    Route::get('/cart', $shop . 'Index@cart');
    Route::get('/contact', $shop . 'Index@contact');
    Route::post('/disconnect', $shop . 'Index@disconnect');

    Route::any('/aliPay', $shop . 'Goods@aliPay');
})->middleware(Shop::class);
